package cn.kgc.Adjudicative.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author sun
 * @since 2023-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("d_user")
public class DUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 工号
     */
    @TableField("workId")
    private String workid;

    /**
     * 用户姓名
     */
    @TableField("userName")
    private String userName;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 盐
     */
    @TableField("salt")
    private String salt;

    /**
     * 法院id
     */
    @TableField("courtId")
    private Integer courtid;

    /**
     * 角色id
     */
    @TableField("roleId")
    private Integer roleid;


}
